package com.headfirst.observer.version2;

import com.headfirst.observer.version1.ForecastDisplay;
import com.headfirst.observer.version1.StatisticsDisplay;

/**
 * @author sunhongguang
 * @create 2022-01-18-23:50
 */
public class WeatherStation_v2 {

    public static void main(String[] args) {
        WeatherData_v2 weatherDataV2 = new WeatherData_v2();
        CurrentConditionDisplay_v2 currentConditionDisplayV2 = new CurrentConditionDisplay_v2(weatherDataV2);
        StatisticsDisplay_v2 statisticsDisplay = new StatisticsDisplay_v2(weatherDataV2);
        ForecastDisplay_v2 forecastDisplay = new ForecastDisplay_v2(weatherDataV2);

        weatherDataV2.setMeasurements(80,65,30.4f);
        weatherDataV2.setMeasurements(82, 70, 29.2f);
        weatherDataV2.setMeasurements(78, 90, 29.2f);
    }
}
